import request from '../utils/request';
//模板模拟
export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
export const orderList = query => {
    return request({
        url: '/vehicle/order/_?',
        method: 'get',
        params:query
    });
};
export const logout = query => {
    return request({
        url: '/vehicle/user/logout',
        method: 'post',
        params:query
    });
};

export const modify = query => {
    return request({
        url: '/vehicle/user/modify',
        method: 'post',
        data:query
    });
};
export const afterPay = query => {
    return request({
        url: '/vehicle/order/afterPay',
        method: 'post',
        data:query
    });
};

export const comment = query => {
    return request({
        url: '/vehicle/order/comment',
        method: 'get',
        params: query
    });
};